package com.hmall.user.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.core.io.Resource;

import java.time.Duration;

/**
 * jwt自动属性注入配置类
 */
@Data
@ConfigurationProperties(prefix = "hm.jwt")
public class JwtProperties {
    private Resource location; //读取密钥的文件地址
    private String password;  //密钥文件的密码
    private String alias;
    private Duration tokenTTL = Duration.ofMinutes(10);
}
